<script type="text/javascript">
    $(document).ready(function(){
        $('.chosen').chosen();
    });
    function add_option(){
        $(".option-action").before('<tr class="option" ><td colspan="3" ><input type="radio" name="option_1" /> <input type="text" class="long-text input-form"/></td></tr>');
        return false;
    }
    function edit_question(){
        return false;
    }
    function remove_question(){
        return false;
    }
</script>
<table class="question" width="100%" cellspacing="0" cellpadding="0" >
    <tr>
        <th width="20%">Question Title</th>
        <td width="">
            <?php
                echo $this->Form->input('title', array(
                                    'label'     => false,
                                    'div'       => false,
                                    'class'     => 'input-form long-text med')
                    );     
            ?>
        </td>
        <td class="table-action" align="right"><a href="#" class="button" onclick="return save_question()">Save</a><a href="#"class="button"  onclick="return remove_question()">Remove</a></td>
    </tr>
    <tr>
        <th valign="top">Question Type</th>
        <td colspan="2">
            <?php
                echo $this->Form->input('type', array(
                                    'type'=>"select",
                                    'options'=> Question::get_types(),
                                    'label'     => false,
                                    'div'       => false,
                                    'class'     => 'chosen med')
                    );     
            ?>      
        </td>
    </tr>
    <tr class="option-action option" style="padding-top: 40px;">
        <td onclick="return add_option()" colspan="3" style="" class="option" ><input type="radio" style="cursor: pointer;opacity: 0.8;font-weight: bold;"  disabled="disabled" name="option_1" /> <input type="text" value="Click to add option" disabled="disabled" style="cursor: pointer" class="long-text input-form"/></td>
    </tr>
</table>